﻿
package com.sc.services;

import android.content.Context;
import android.widget.Toast;


public class Tool
{
	// 通过定时服务，在锁屏、解屏时展示广告
	public static void startService(Context context)
	{
		ScreenService.start(context);
		ScreenReceiver.register(context);
	}
	
	// 通过定时服务，在锁屏、解屏时展示广告
	public static void stopService()
	{
		ScreenService.stop();
		ScreenReceiver.unRegister();
	}
	
	// 定义服务处理逻辑
	public static void serviceLogic()
	{
		// Toast.makeText(ScreenService.this, TAG + " is running !", Toast.LENGTH_SHORT).show();
	}
}
